home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aventuras Na Quinta
/
Aventuras Na Quinta.iso
/
system.prt
< prev
next >
Wrap
Text File
|
1993-10-26
|
1KB
|
43 lines
; DLL functions for accessing system information.
;The following call returns the X or Y resolution:
USER.EXE: int WINAPI GetSystemMetrics(int);
;Example1- GetSystemMetrics(0)
;Example2- GetSystemMetrics(1)
;The following call returns the percentage of free resources:
USER.EXE: UINT WINAPI GetFreeSystemResources(UINT);
;Example1- GetFreeSystemResources(0) -returns free system resources.
;Example2- GetFreeSystemResources(1) -returns free GDI resources.
;Example3- GetFreeSystemResources(2) -returns free USER resources.
;The following call returns free space in memory:
KRNL386.EXE: DWORD WINAPI GetFreeSpace(UINT);
;Example1- GetFreeSpace(0) -returns free memory space.
;The following call returns the IA Window instance:
USER.EXE: WORD WINAPI GetWindowWord(HWND, int);
;Example1- GetWindowWord(@_RUN_WND, -6);
;The following call causes a system message beep:
USER.EXE: void WINAPI MessageBeep( WORD );
;Example1- MessageBeep(-1)
;The following call will return the system colors:
AMTAPP.DLL: WORD WINAPI LIB_GetScreenColors(VOID);
;Example 1- LIB_GetScreenColors()
;The following call evokes a "Stay on Top" state for the IA window:
USER.EXE: BOOL WINAPI SetWindowPos(HWND,HWND,int,int,int,int,UINT);
;Example- SetWindowPos(@_RUN_WND,-1,0,0,0,0,3)
;The following call searches a specified path for a file:
KRNL386.EXE: HANDLE WINAPI OpenFile(LPCSTR, LPSTR, UINT);
;Example- OpenFile("C:\test.bmp", @junk, 0x4000);